package com.oracle.applicaiton.feign;

import com.oracle.applicaiton.vo.MemberVo;
import com.oracle.application.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author bug制造者
 * @ClassName MemberFeign.java
 * @createTime 2021年07月08日 15:11:00
 * @Description
 */
@FeignClient(name = "bookstore-member-server",path = "/member")
public interface MemberFeign {

    @GetMapping("/verifyEmail")
    public R verifyEmail(@RequestParam(name = "email") String email);

    @PostMapping("/registerMember")
    public R register(@RequestBody MemberVo memberVo);
}
